package syun.nacos.dubbo.consumer.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import syun.nacos.dubbo.service.ApiService;

@RestController
public class TestController {

    @DubboReference(version = "1.0.0",group = "test1")
    ApiService apiService;

    @GetMapping("/test")
    public String hello() {
        return apiService.test();
    }
}
